/** 公共接口 **/
import { base_uri } from '../request.config';

const commonApi = {
    pickupFreeList: 'pickupFree/list',  //  取件白名单列表
    pickupFreeDetail: 'pickupFree/detail',  //  取件白名单详情
    pickupFreeCreate: 'pickupFree/add',  //  添加取件白名单
    pickupFreeUpdate: 'pickupFree/update',  //  更新取件白名单
    pickupFreeDelete: 'pickupFree/delete',  //  删除取件白名单
    pickupFreeDisable: 'pickupFree/disable',  //  禁用取件白名单
    pickupFreeEnable: 'pickupFree/enable',  //  启用取件白名单
};

const common: any = Object.keys(commonApi)
    .reduce((origin, item) => {
        origin[item] = `${base_uri}/${commonApi[item]}`;
        return origin;
    }, {})

export default common;
